<html  xmlns:th="http://www.thymeleaf.org"  lang="zh-CN">
<script>
    //获取url中的参数
    function getUrlParam(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
        var r = window.location.search.substr(1).match(reg);  //匹配目标参数
        if (r != null) return decodeURI(r[2]);
        return null;//返回参数值
    }

    const storeId = '[[${storeId}]]'
    const storeName = '[[${storeName}]]'
    const storeAddress = '[[${storeAddress}]]'
    const params = getUrlParam('params');
    const domain = params.split(',')[0]
    const id = params.split(',')[1]
    if (params.split(',')[2] && params.split(',')[2] === 'v2') {
        window.location = `https://${domain}/#/pages/goods/goods_v2?id=${id}&storename=${storeName}&storeid=${storeId}&storeaddress=${storeAddress}`
    } else {
        window.location = `https://${domain}/#/pages/goods/goods?id=${id}&storename=${storeName}&storeid=${storeId}&storeaddress=${storeAddress}`
    }
</script>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>Emap Callback</title>
</head>
<body>
<input type="hidden" id="storeId" value="${storeId}">
<input type="hidden" id="storeName" value='${storeName}'>
<input type="hidden" id="storeAddress" value='${storeAddress}'>
</body>
</html>